package com.rmondjone.face;

import android.content.Context;
import android.content.res.Configuration;

/**
 * copyright：
 *
 * @author：anthui creation date： .
 * @since: 1.0.0
 * @describe:
 */
public class AppUtil {
    /**
     * 判断是否平板设备
     *
     * @param context
     * @return true:平板,false:手机
     */
    public static String isTabletDevice(Context context) {


        if ((context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >=
                Configuration.SCREENLAYOUT_SIZE_LARGE) {
            return "1";
        } else {
            return "0";

        }

    }
}
